<?php    
    $c = new Criteria();
    $dimensiones = DimensionPeer::doSelect($c);
    if ($categoria->getDimensionId()) {
        $dimension_selected = $categoria->getDimensionId();
    } else if (count($dimensiones)>0){
        $dimension_selected = $dimensiones[0]->getId();
    } else {
        $dimension_selected = "";
    }

    echo select_tag('categoria[dimension_id]',objects_for_select($dimensiones,'getId','getNombre',$dimension_selected,'include_custom=Seleccione'));
                                                            
?>
